package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JzArticleShopMapper;
import com.ruoyi.system.domain.JzArticleShop;
import com.ruoyi.system.service.IJzArticleShopService;

/**
 * 旅游攻略关联表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-22
 */
@Service
public class JzArticleShopServiceImpl implements IJzArticleShopService 
{
    @Autowired
    private JzArticleShopMapper jzArticleShopMapper;

    /**
     * 查询旅游攻略关联表
     * 
     * @param id 旅游攻略关联表ID
     * @return 旅游攻略关联表
     */
    @Override
    public JzArticleShop selectJzArticleShopById(Long id)
    {
        return jzArticleShopMapper.selectJzArticleShopById(id);
    }

    /**
     * 查询旅游攻略关联表列表
     * 
     * @param jzArticleShop 旅游攻略关联表
     * @return 旅游攻略关联表
     */
    @Override
    public List<JzArticleShop> selectJzArticleShopList(JzArticleShop jzArticleShop)
    {
        return jzArticleShopMapper.selectJzArticleShopList(jzArticleShop);
    }

    /**
     * 新增旅游攻略关联表
     * 
     * @param jzArticleShop 旅游攻略关联表
     * @return 结果
     */
    @Override
    public int insertJzArticleShop(JzArticleShop jzArticleShop)
    {
        return jzArticleShopMapper.insertJzArticleShop(jzArticleShop);
    }

    /**
     * 修改旅游攻略关联表
     * 
     * @param jzArticleShop 旅游攻略关联表
     * @return 结果
     */
    @Override
    public int updateJzArticleShop(JzArticleShop jzArticleShop)
    {
        return jzArticleShopMapper.updateJzArticleShop(jzArticleShop);
    }

    /**
     * 批量删除旅游攻略关联表
     * 
     * @param ids 需要删除的旅游攻略关联表ID
     * @return 结果
     */
    @Override
    public int deleteJzArticleShopByIds(Long[] ids)
    {
        return jzArticleShopMapper.deleteJzArticleShopByIds(ids);
    }

    /**
     * 删除旅游攻略关联表信息
     * 
     * @param id 旅游攻略关联表ID
     * @return 结果
     */
    @Override
    public int deleteJzArticleShopById(Long id)
    {
        return jzArticleShopMapper.deleteJzArticleShopById(id);
    }
}
